/* 初始化样式
------------------------------- */
// * {
// 	margin: 0;
// 	padding: 0;
// 	box-sizing: border-box;
// 	outline: none !important;
// }

html,
body,
#app {
  width: 100%;
  height: 100%;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, SimSun, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  background: var(--bg);
  font-size: 14px;
  position: relative;
}

/* 主布局样式
------------------------------- */
.page {
  width: 100%;
  height: 100%;
  background: var(--bg);
  .aside {
    background: var(--bg-menuBar);
    box-shadow: 2px 0 6px rgb(0 21 41 / 1%);
    height: inherit;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden !important;
    .el-scrollbar__view {
      overflow: hidden;
    }
  }
  .el-scrollbar {
    width: 100%;
  }
  // 此字段多次用到，建议不删除，如需修改，请重写覆盖样式
  .bg-white {
    background: var(--el-color-white);
    width: 100%;
    height: 100%;
    border-radius: 4px;
    // border: 1px solid var(--el-border-color-light, #ebeef5);
  }
  // pc端左侧导航样式
  .layout-aside-pc-180 {
    width: 180px !important;
    transition: width 0.3s ease;
  }
  .layout-aside-pc-64 {
    width: 64px !important;
    transition: width 0.3s ease;
  }
  // 手机端左侧导航样式
  .layout-aside-mobile {
    position: fixed;
    top: 0;
    left: -180px;
    width: 180px;
    z-index: 9999999;
  }
  .layout-aside-mobile-close {
    left: -180px;
    transition: all 0.3s cubic-bezier(1, -0.04, 0, 1.32);
  }
  .layout-aside-mobile-open {
    left: 0;
    transition: all 0.3s cubic-bezier(0.53, -0.26, 0.42, 1.18);
  }
  .layout-aside-mobile-mode {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999998;
  }
}

/* nprogress 进度条跟随主题颜色
------------------------------- */
#nprogress {
  .bar {
    background: var(--color-primary) !important;
    z-index: 9999999 !important;
  }
}

/* flex 弹性布局
------------------------------- */
.flex {
  display: flex;
}
.flex-auto {
  flex: 1;
}
.flex-center {
  display: flex;
  flex-direction: column !important;
  width: 100%;
  overflow: hidden;
}
.flex-margin {
  margin: auto;
}
.flex-warp {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  margin: 0 -5px;
  .flex-warp-item {
    padding: 5px;
    .flex-warp-item-box {
      width: 100%;
      height: 100%;
    }
  }
}

/* 宽高 100%
------------------------------- */
.w100 {
  width: 100% !important;
}
.h100 {
  height: 100% !important;
}
.vh100 {
  height: 100vh !important;
}
.max100vh {
  max-height: 100vh !important;
}
.min100vh {
  min-height: 100vh !important;
}

/* 颜色值
------------------------------- */
.color-primary {
  color: var(--color-primary);
}
.color-success {
  color: var(--color-success);
}
.color-warning {
  color: var(--color-warning);
}
.color-danger {
  color: var(--color-danger);
}
.color-info {
  color: var(--color-info);
}

/* 字体大小全局样式
------------------------------- */
@for $i from 10 through 32 {
  .font#{$i} {
    font-size: #{$i}px !important;
  }
}

/* 外边距、内边距全局样式
------------------------------- */
@for $i from 1 through 36 {
  .mt#{$i} {
    margin-top: #{$i}px !important;
  }
  .mr#{$i} {
    margin-right: #{$i}px !important;
  }
  .mb#{$i} {
    margin-bottom: #{$i}px !important;
  }
  .ml#{$i} {
    margin-left: #{$i}px !important;
  }
  .pt#{$i} {
    padding-top: #{$i}px !important;
  }
  .pr#{$i} {
    padding-right: #{$i}px !important;
  }
  .pb#{$i} {
    padding-bottom: #{$i}px !important;
  }
  .pl#{$i} {
    padding-left: #{$i}px !important;
  }
}
